<?php
/**
 * Created by PhpStorm.
 * User: Nikola
 * Date: 21.9.14.
 * Time: 13.11
 */

class AdminController extends BaseController {

    public function login()
    {
        return View::make('admin.login');
    }

    public function adminPanel()
    {
        if(Session::get('tip') == 'admin' && Session::get('status_ulogovan') == true)
            return View::make('admin.adminpanel');
        else
            return View::make('admin.login');
    }
} 